<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
	<head>
		<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
		<link rel="stylesheet" type="text/css" href="/site_media/css/style.css" />
		<script type="text/javascript" src="/site_media/js/prototype.js"></script>
		<script type="text/javascript">{% block script %}{% endblock %}</script>
		<title>{% block title %}{% endblock %} - 我爱拼客</title>
	</head>
	<body>
		<div id="page">
			<div id="user_status">
				{% if user.is_authenticated %}
					<span><a href="/manage/">{{ user.username }}</a></span>
					<span><a href="/logout/">登出</a></span>
				{% else %}
					<span><a href="/register/">注册</a></span>
					<span><a href="/login/">登录</a></span>
				{% endif %}
			</div>
			<br class="clearfloat" />
			<div id="head"></div>
			<div id="menu">
				<ul>
					<li><a href="/">首页</a></li>
					<li><a href="/shares/">分享</a></li>
					<li><a href="/share/new/">添加分享</a></li>
					<li><a href="/pinkes/">查看拼客</a></li>
				</ul>
				<br class="clearfloat" />
			</div>
			{% block content %}{% endblock %}</body>
		</div>
	</body>
</html>
